package com.cakebackoffice.database;


public class Client_has_Order extends DatabaseTable {
    public static final String TABLESNAME = "Client_has_Order";
    public static final String ID = "_id";
    public static final String ID_CLIENT = "idClient";
    public static final String ID_ORDER = "idOrder";

    public static final String[] ALLFIELDS = new String[]{
            ID,
            ID_CLIENT,
            ID_ORDER
    };

    public static final String CREATE = "CREATE TABLE " + TABLESNAME
            + " ( "
            + ID + " INTEGER PRIMARY KEY AUTOINCREMENT , "
            + ID_CLIENT + " INTEGER , "
            + ID_ORDER + " INTEGER ); ";


    private static DatabaseTable ourInstance = new Client_has_Order();


    @Override
    public String getTableName() {
        return TABLESNAME;
    }

    @Override
    public String[] getAllFields() {
        return ALLFIELDS;
    }

    @Override
    public String getCreate() {
        return CREATE;
    }

    public static DatabaseTable getInstance() {
        return ourInstance;
    }

    private Client_has_Order() {
    }
}
